package com.fhz.day005;

import androidx.appcompat.app.AppCompatActivity;


import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.ActivityComponent;

/**
 * 时间:2022/3/24
 *
 * @author msfeng
 * 简述: TODO
 */

@Module
@InstallIn(ActivityComponent.class)
public class UserModule {

    @Provides
    public User getUser(){
        return new User("大明");
    }

}

